#ifndef PAGETABLE_H
#define PAGETABLE_H

const long OFFSET    = 12; // 32 - 20 PageBits
const long NUM_PAGES = 1048576;


struct PTEntry {
  int frame;
  bool ref;
  bool dirty;
  int time; // Global time in LRU, process time in Working Set

PTEntry(void) : frame(-1), ref(0), dirty(0), time(-1) {}
};

struct PageTable {
  PTEntry entries [NUM_PAGES];
  int numEntries; //  the number of entries in the page table
};

#endif

